<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./template/LayoutPadrao.xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
    <f:metadata>
        <f:viewParam name="artigo" value="#{novaAvaliacaoBean.artigoSelecionado}"/>
        <f:viewParam name="revisor" value="#{novaAvaliacaoBean.revisorSelecionado}"
                     converter="revisorConverter"/>
    </f:metadata>

    <ui:define name="centro">
        <h:form>
            <p:panelGrid columns="4">
                <f:facet name="header">Avaliação - #{novaAvaliacaoBean.artigoSelecionado.titulo}</f:facet>
                <p:column>                    
                
                </p:column>
                <p:column>                    
                    Quesito 1
                </p:column>
                <p:column>
                    Quesito 2
                </p:column>
                <p:column>
                    Quesito 3
                </p:column>
                <p:column>                    
                Nota
                </p:column>
                <p:column>                    
                    <p:selectOneMenu value="#{novaAvaliacaoBean.avaliacaoPK.notaC1}" 
                                     label="Quesito 1">
                        <f:selectItem itemLabel=" - " noSelectionOption="true" 
                                      itemValue=""/>
                        <f:selectItem itemLabel="A" itemValue="A" />
                        <f:selectItem itemLabel="B" itemValue="B"/>
                        <f:selectItem itemLabel="C" itemValue="C"/>
                    </p:selectOneMenu>
                </p:column>
                <p:column>
                    <p:selectOneMenu value="#{novaAvaliacaoBean.avaliacaoPK.notaC2}">
                       <f:selectItem itemLabel=" - " noSelectionOption="true" 
                                      itemValue=""/>
                        <f:selectItem itemLabel="A" itemValue="A" />
                        <f:selectItem itemLabel="B" itemValue="B"/>
                        <f:selectItem itemLabel="C" itemValue="C"/>
                    </p:selectOneMenu>
                </p:column>
                <p:column>
                    <p:selectOneMenu value="#{novaAvaliacaoBean.avaliacaoPK.notaC3}">
                         <f:selectItem itemLabel=" - " noSelectionOption="true" 
                                      itemValue=""/>
                        <f:selectItem itemLabel="A" itemValue="A" />
                        <f:selectItem itemLabel="B" itemValue="B"/>
                        <f:selectItem itemLabel="C" itemValue="C"/>
                    </p:selectOneMenu>
                </p:column>
                <f:facet name="footer">
                    <p:commandButton value="Salvar"
                                     update="@form"
                                     action="#{novaAvaliacaoBean.salvar}"/>
                </f:facet>
            </p:panelGrid>
            <p:growl />
        </h:form>
    </ui:define>

</ui:composition>
